package com.loser.rpc;

import com.loser.module.base.common.ApiResponse;
import com.loser.rpc.sale.dto.resp.UserBalanceResp;
import com.loser.rpc.sale.rpc.BalanceFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class RpcBalanceHandler {

    @Autowired
    private BalanceFeign balanceFeign;

    public ApiResponse<UserBalanceResp> getByUserId(Long userId) {
        return balanceFeign.getByUserId(userId);
    }

}
